<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Log extends Model
{
    protected $guarded = [];

    public function record()
    {
        return $this->belongsTo(Record::class);
    }

    public function product()
    {
        return $this->belongsTo(Product::class);
    }

    public function getItAttribute($value)
    {
        return $value/10;
    }
}
